﻿using System.Configuration;
using DiNinject.EfModel;

namespace DiNinject.Web.UI.Helper
{
    public class WebConnectionInfo : IConnectionInfo
    {
        public WebConnectionInfo()
        {
            DataSource = ConfigurationManager.AppSettings["DBDataSource"]; ;
            InitialCatalog = ConfigurationManager.AppSettings["DBCatalog"]; ;
            UserID = ConfigurationManager.AppSettings["DBUser"];
            Password = ConfigurationManager.AppSettings["DBPassword"];
        }

        public string DataSource { get; set; }
        public string InitialCatalog { get; set; }
        public string UserID { get; set; }
        public string Password { get; set; }
    }
}